/*---------------------------------------------------------------------------*/
/*   Sample code for unit test , using google test          
/*   File Name    :  sample_func1.c
/*   Complier     :  >= C90
/*   Author       :  Shibo Jiang     
/*   Instructions :  Initial file.             2020/5/27              V0.1
/*          
/*---------------------------------------------------------------------------*/

/* Include Files */
#include "sample_func2.h"

/* Function Declation */
void bubblesort(int* data, int len);

/* Function start -----------------------------------------------------------*/
void bubblesort(int* data, int len) 
{
    int temp = 0;
    for (int i = 0; i < len; i++)
    {
        for (int j = i + 1; j < len; j++)
        {
            if (data[i] > data[j])
            {
                temp = data[i]; 
                data[i] = data[j];
                data[j] = temp;
            }
        }
    }
}
/* Function end--------------------------------------------------------------*/